package com.bawei.lib_net

import com.bawei.lib_net.test_rertrofit.Api
import com.bawei.lib_net.test_rertrofit.RetrofitDemo2
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }

    @Test
    fun testRetrofit(){
        val retrofitDemo2 = RetrofitDemo2()
        val api = retrofitDemo2.create(Api::class.java)
        api.get(1)

    }
}